package com.project.study.farming.base.entity.dto;

import com.project.study.farming.common.utils.CommonUtil;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 植物种类信息
 * @since 2020-04-26
 */
@Data
public class CropTypeDto {

    private Integer typeId;

    private String name;

    private String image;

    private String type;

    private Integer typeCode;

    private String createTime;

    private String createBy;

    private Integer isDelete;

    private LocalDateTime updateTime;

    private String updateBy;

    public void setCreateTime(LocalDateTime createTime){
        this.createTime = CommonUtil.formatLocalDateTime(createTime);
    }

    public void setCreateTime(String createTime){
        this.createTime = createTime;
    }
}
